<?php
require 'smarty.php';
require 'db_connect_fn.php';
//var_dump($smarty);
$sql="select * from class";
$data=query($sql);
//print_r($data);
$smarty->assign("data",$data);
$smarty->display("index.html"); 
?>
